package conson.tech.manage.coupons.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.coupons.entity.pojo.OperationLog;
import conson.tech.manage.coupons.entity.vo.OperationLogVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * InterfaceName: OperationLogMapper
 * Description:
 * Author: ZYF
 * Date: 2020/7/20
 * Version: 1.0
 */
public interface OperationLogMapper extends BaseMapper<OperationLog> {

    List<OperationLogVo> queryOperationLog(Long couponsId);

    /**
     * 领券活动日志列表
     *
     * @param page
     * @param id
     * @param type
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<conson.tech.manage.coupons.entity.pojo.OperationLog>
     */
    Page<OperationLogVo> couponActivityLogList(Page<OperationLogVo> page, @Param("id") Long id, @Param("type") Integer type);
}
